package day13.XianCheng;

public class Lian13 {
    public static void main(String[] args) {
        MyThread3 mt=new MyThread3();
        Thread t1=new Thread(mt);
        try {
            Thread.sleep(200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        t1.start();
    }
}
class MyThread3 implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
